Added Ludo Game In C Solved Issue No:#392 #438
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Solved issue no.#392 Adding Game
Please merge my code.It is working properly
Kindly merge my pull request
Name:Dinky Rajpoot
Username:DinkyRajpoot56
Aim:Adding Game
Changes:Added Ludo Game in C
Issue no:#392
Date:27/10/2024
Adding Ludo Game in C
Rule No. 1: The game starts with each player choosing a set of four pieces (usually colored red, blue, green, and yellow) and placing them on the starting square.
Rule No. 2: The objective of the game is to move all four pieces around the board and return them to the starting square before your opponents.
Rule No. 3: On each turn, players roll two dice to determine how many spaces they can move their pieces.
Rule No. 4: The number on each die represents how many spaces a piece can move. For example, if a player rolls a 3 and a 6, they can move one piece 3 spaces and another piece 6 spaces.
Rule No. 5: Pieces can only move forward, never backward.
Rule No. 6: If a piece lands on a square occupied by an opponent's piece, it can "knock off" that piece and send it back to the starting square.
Rule No. 7: A piece can only be moved to a square that is empty or occupied by an opponent's piece.
Rule No 8: If a player rolls a double (e.g., two 6s), they can move one piece the total number of spaces shown on the dice (e.g., 6 spaces for two 3s).
Rule No. 9: if a player 3 pieces reached Home, only one is left. and the piece reached the home column. A person should be shifted to one Dice, if the player wants to play with 2 dice he/she gets the exact number which in the case of one, is not possible
Rule No. 10: If a player has no pieces on the board, they can only roll the dice to try to get a double, which allows them to enter a piece into play.
Rule No. 11: The game ends when one player has all four pieces back on the starting square. That player is the winner.